package com.woniu.liuzhougov.itemAndTask.dao;

import com.woniu.liuzhougov.itemAndTask.pojo.Supervision;

import java.util.List;

/*
**
 * @Author Wuyuzhong
 * @Description 督办单
 * @Date 2019/4/28 16:31
 * @Param 
 * @return 
 **/
public interface SupervisionMapper {
    /*
    **
     * @Author Wuyuzhong
     * @Description 创建新督办单
     * @Date 2019/4/28 16:33
     * @Param [supervision]
     * @return int
     **/
    int insertSupervision(Supervision supervision);
    
    /*
    **
     * @Author Wuyuzhong
     * @Description 通过任务id删除督办单
     * @Date 2019/4/28 16:34
     * @Param [taskId]
     * @return int
     **/
    int deleteByTaskId(Integer taskId);
    
    /*
    **
     * @Author Wuyuzhong
     * @Description 更新督办单内容、执行人
     * @Date 2019/4/28 16:50
     * @Param [supervision]
     * @return int
     **/
    int updateSupervision(Supervision supervision);
    
    /*
    **
     * @Author Wuyuzhong
     * @Description 通过督办人查找督办单列表
     * @Date 2019/4/28 16:36
     * @Param [founderId]
     * @return java.util.List<com.woniu.liuzhougov.itemAndTask.pojo.Supervision>
     **/
    List<Supervision> searchByFounderId(Integer founderId);

    /*
    **
     * @Author Wuyuzhong
     * @Description 通过执行人查找督办单列表
     * @Date 2019/4/28 16:42
     * @Param [workerId]
     * @return java.util.List<com.woniu.liuzhougov.itemAndTask.pojo.Supervision>
     **/
    List<Supervision> searchByWorkerId(Integer workerId);
    
    int deleteByPrimaryKey(Integer supervisionId);

    int insert(Supervision record);

    int insertSelective(Supervision record);

    Supervision selectByPrimaryKey(Integer supervisionId);

    int updateByPrimaryKeySelective(Supervision record);

    int updateByPrimaryKey(Supervision record);
}